/*
 * Copyright (c) 2021-2022 xu
 *
 * HDF is dual licensed: you can use it either under the terms of
 * the GPL, or the BSD license, at your option.
 * See the LICENSE file in the root of this repository for complete details.
 */

#ifndef TEMPERATURE_SHT31_H
#define TEMPERATURE_SHT31_H

#include "sensor_config_parser.h"
#include "sensor_temperature_driver.h"

#define SHT31_TEMPERATURE_DATA_ADDR              0x240B    // Temperature Data

int32_t DetectTemperatureSHT31Chip(struct SensorCfgData *data);
int32_t ReadSHT31Data(struct SensorCfgData *data);

struct SHT31DrvData {
    struct IDeviceIoService ioService;
    struct HdfDeviceObject *device;
    struct SensorCfgData *sensorCfg;
};

#endif /* TEMPERATURE_SHT31_H */